<?xml version="1.0" encoding="iso-8859-1"?>

<xsl:stylesheet version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/">
  <report>
  <block type="persist" x="10" y="285">
    <text x="20" y="0">
      <font size="14"><xsl:value-of select="scicero/class/class/name"/><![CDATA[ ]]><xsl:value-of select="scicero/class/class/date"/></font>  
    </text>
  </block>
    <!--
  <block type="persist" x="10" y="0">
    <line x="0" y="30" width="200" />
  </block> -->
    <xsl:for-each select="scicero/class/class/student/student">
    <block type="body" x="10" y="270" pagebreakafter="yes">
     <line x="0" y="10" width="190" />
      <text x="0" y="0">
        <font size="14">
          <xsl:value-of select="name"/>
        </font>
      </text>
      <table x ="0" y="20">
        <xsl:for-each select="test/test">
          <tr>
            <td>
              <xsl:value-of select="name"/>
            </td>
            <td>
              <xsl:value-of select="subject"/>
            </td>
            <td>
              <xsl:value-of select="comment"/>
            </td>
            <td>
              <xsl:value-of select="date"/>
            </td>
            <td>
              <xsl:value-of select="grade"/>
            </td>
          </tr>
        </xsl:for-each>
      </table>
    </block>
    </xsl:for-each>
  </report>
</xsl:template>

</xsl:stylesheet> 

